package main

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/container"
	"fyne.io/fyne/v2/widget"
)

var totalItem = 0
var form *widget.Form
var c *fyne.Container
var entries []*widget.Entry
var commandWay string //删除方式
var replaceStr string //文件类型替换前缀

func makeTab(window fyne.Window) *fyne.Container {

	tabs := container.NewAppTabs(
		container.NewTabItem("手工", manualWay(window)),
		container.NewTabItem("导入", autoWay(window)),
		container.NewTabItem("配置", makeConfigForm(window)),
		container.NewTabItem("历史记录", queryHistory(window)),
	)
	hbox := container.NewVBox(
		tabs,
	)
	return hbox
}

func main() {
	myApp := app.New()
	myWindow := myApp.NewWindow("linux 批量删除命令")
	tabs := makeTab(myWindow)
	myWindow.SetContent(tabs)
	myWindow.Resize(fyne.NewSize(800, 800))
	myWindow.Show()
	myApp.Run()
}
